package com.order.manager.controller.ComplaintInfo;

import com.order.manager.Model.other.RestBean;
import com.order.manager.service.impl.ComplaintInfoServiceImpl;
import com.order.manager.service.impl.UserInfoServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/complaint")
@RestController
public class ComplaintInfoController {

    @Resource
    ComplaintInfoServiceImpl complaintInfoService;

    @RequestMapping("/select/{page}/{item}")
    public RestBean select(@PathVariable int page,@PathVariable int item,String content){
        return RestBean.success(complaintInfoService.queryList(page,item, content));
    }



}
